#pragma once


// CTimerWnd

class CTimerWnd : public CWnd
{
	DECLARE_DYNAMIC(CTimerWnd)

public:
	CTimerWnd();
	virtual ~CTimerWnd();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnPaint();
	afx_msg LRESULT OnNcHitTest(CPoint point);
	void	DrawTime(CDC* pDC);
	void	DrawBackground(CDC* pDC);

public:
	virtual BOOL CreateEx(const CRect& rc);
	void	SetTimer(double time);
	void	SetRange(double dMax);

private:
	CString		m_strTimer;
	CRect		m_rc;
	CRect		m_rcBk;
	double		m_nTotalTime;
	int			m_nCurPos;
	CFont		*m_pFontText;
	HANDLE		m_hFont;
};


